          <?php                       
          drupal_add_css(CSS . 'accommodation.visual.css',array("type"=>"external"));
          drupal_add_js(JS . 'accommodation.visual.js',array("type"=>"external"));
                            foreach ($category_data as $index=>$data)
                            {
                                if ($index % 3 == 0)
                                {
                                ?>
                                    <div class="row">
                                <?php
                            }
                            ?>
                                <div class="result_block col-md-4">
                                    <div class="hotel_img"><a href="<?=$GLOBALS['base_url']?>/detail?hotel_id=<?=$data["EntityID"]?>&lan=<?=$lan?>"><img src="<?=$data["EntityImageHead"]?>"/></a></div>
                                    <div class="hotel_services">
                                        <div style="width:<?=9*23?>px;">
                                            <div class="hotel_service" style="float:left"><img src="/res/img/search_result/services_icons_kit<?=($data["HotelService"]&256) == 0?"_gray":""?>.gif"/></div>
                                            <div class="hotel_service" style="float:left"><img src="/res/img/search_result/services_icons_discount<?=($data["HotelService"]&128) == 0?"_gray":""?>.gif"/></div>
                                            <div class="hotel_service" style="float:left"><img src="/res/img/search_result/services_icons_breakfast<?=($data["HotelService"]&64) == 0?"_gray":""?>.gif"/></div>
                                            <div class="hotel_service" style="float:left"><img src="/res/img/search_result/services_icons_speak_staff<?=($data["HotelService"]&32) == 0?"_gray":""?>.gif"/></div>
                                            <div class="hotel_service" style="float:left"><img src="/res/img/search_result/services_icons_teaset<?=($data["HotelService"]&16) == 0?"_gray":""?>.gif"/></div>
                                            <div class="hotel_service" style="float:left"><img src="/res/img/search_result/services_icons_unionplay<?=($data["HotelService"]&8) == 0?"_gray":""?>.gif"/></div>
                                            <div class="hotel_service" style="float:left"><img src="/res/img/search_result/services_icons_magazine<?=($data["HotelService"]&4) == 0?"_gray":""?>.gif"/></div>
                                            <div class="hotel_service" style="float:left"><img src="/res/img/search_result/services_icons_chi_tv<?=($data["HotelService"]&2) == 0?"_gray":""?>.gif"/></div>
                                            <div class="hotel_service"><img src="/res/img/search_result/services_icons_cctv<?=($data["HotelService"]&2) == 0?"_gray":""?>.gif"/></div>

                                        <div class="clearfix"></div>
                                        </div>
                                        
                                    </div>
                                    <div class="hotel_short_info">
                                        <span class="map_marker">
                                            <span class="map_marker_text_overlay">
                                                <?=$index+1?>
                                            </span>
                                        </span>
                                        <span class="text-muted hotel_name">
                                            <?=$data["EntityName"]?>
                                        </span>
                                        <div class="clearfix"></div>
                                    </div>
                                    <div class="hotel_star">
                                        <img src="/res/img/search_result/star_icon_hotel.png"/><span class="star_count"><?=$data["HotelRating"]?></span>
                                    </div>
                                    <a id="result_over_block" href="<?=$GLOBALS['base_url']?>/<?=$lan?>/detail/<?=$data["HotelWCUUID"]?>/<?=str_replace(" ","-",!empty($city)?$city:$country)?>/<?=str_replace(" ","-",$data["EntityName"])?>" class="result_block_overlay" style="display:none; " >
                                        
                                    </a>
                                </div>
                            <?php
                                if (($index+1)%3 == 0 || ($index+1) == count($category_data) )
                                {
                                ?>
                                    </div>
                                <?php
                                }
                            }  
                            ?>